﻿<%@ Page Language="C#" MasterPageFile="~/FrameMasterPage.master" AutoEventWireup="true" CodeFile="ListActionTaken.aspx.cs" Inherits="ListActionTaken" Title="Untitled Page" %>

<asp:Content ID="Content1" ContentPlaceHolderID="m_contentBody" Runat="Server">
<body>

<table >
<tr><td align="center" class="BigLabel" >
         <asp:Label ID="lblTotalActionTaken" runat="server" Text=""></asp:Label>
        </td></tr>
   <tr >        
             <td  align="center" class="GridItem"  style="text-align:center;height:10px" >
             <asp:GridView ID="grdListActionTaken1" visible ="false" runat="server" 
                     AllowPaging="True" Width="700px" 
                     Height="30px" AllowSorting="True" AutoGenerateColumns="False" BorderStyle="None" 
                    CssClass="GridItem"
                    DataSourceID="dsMessage" 
                    CellPadding="0" ForeColor="#333333" GridLines="None" PageSize="2">
                 <FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" />
                 <RowStyle BackColor="#EFF3FB" />
                 <SelectedRowStyle BackColor="#FF5050" />
                  <HeaderStyle BorderStyle="None" CssClass="GridViewHeader" Height="20px" 
                        Width="30px" />
                        
                 <Columns>
                     <asp:BoundField DataField="Label" />
                 </Columns>
             
                 <PagerStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <EditRowStyle BackColor="LightGray" />
                    <RowStyle CssClass="AlternativeRowStyle" />
                    <AlternatingRowStyle BackColor="White" CssClass="AlternativeRowStyle" />
                 
</asp:GridView >           
                 <asp:ObjectDataSource ID="dsMessage" runat="server" SelectMethod="GetMessage" 
                     TypeName="DirectService"></asp:ObjectDataSource>
                   <br />
             </td>    
         </tr>       
        
<tr>  <asp:TextBox ID="txtHiddenWhereClause" runat="server" Height="17px" Width="205px" Visible="False"></asp:TextBox>
       <asp:TextBox ID="txthiddenOrderbyClause" runat="server"  Width="77px" Visible="false" ></asp:TextBox>
</tr>
<tr><td align="center" class="GridItem"  style="text-align:left">

<asp:UpdatePanel ID="updatePanelEquipment" runat="server">
            <ContentTemplate>
            
<div style="height:350px; width:730px; overflow:auto">
                <asp:GridView ID="grdListActionTaken" runat="server" AllowPaging="True" 
                    AllowSorting="True" AutoGenerateColumns="False" BorderStyle="None" 
                    CssClass="GridItem" DataSourceID="dsListActionTaken" 
                    RowHeaderColumn="EquipmentId" Width="90%" PageSize="8">
                    <HeaderStyle BorderStyle="None" CssClass="GridViewHeader" Height="20px" 
                        Width="30px" />
                    <Columns>
                     <asp:CommandField ShowSelectButton="True" />
                         
                          <%--<asp:TemplateField>
                            <ItemTemplate>
                                <a  title="Delete" href="javascript:confirmDelete('ActionTaken.aspx?delete=true&tabIndex=0&taskinworkorderId=<%# DataBinder.Eval(Container.DataItem,"taskinworkorderId")%>&pageIndex=<%=GetPageIndex()%>')">
                                <img border="0" height="15" src="images/del.png" width="15"> </img></a>
                            </ItemTemplate>
                            <ItemStyle Width="15px" />
                        </asp:TemplateField>--%>
                        
                         <asp:TemplateField >
                            <ItemTemplate >  
                               <%-- <a title="Edit" href="ActionTaken.aspx?tabIndex=1&taskinworkorderId=<%# DataBinder.Eval(Container.DataItem, "taskinworkorderId") %>" "> --%>
                                <a title="Edit" href="ActionTakenAddNew.aspx?tabIndex=3&actionTakenId=<%# DataBinder.Eval(Container.DataItem, "reparationID") %>" "> 
                                <img border=0 src="./images/edit.png" width="15" height="15">
                        </a> 
                            </ItemTemplate>
                            <ItemStyle Width="15px" />
                        </asp:TemplateField>
                        
                        <asp:TemplateField >
                            <ItemTemplate >  
                                <a title="Detail" href="ProblemView.aspx?tabIndex=2&taskinworkorderId=<%# DataBinder.Eval(Container.DataItem, "taskinworkorderId") %>" "> 
                                <img border=0 src="./images/b_view.png" width="15" height="15">
                                </a> 
                            </ItemTemplate>
                            <ItemStyle Width="15px" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ID Action taken" 
                            SortExpression="TASKINWORKORDERID">
                            <ItemTemplate>
                                <%# Eval("reparationID")%>
                            </ItemTemplate>
                            <ItemStyle Width="50px" />
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox1" runat="server" Text='<%# Bind("reparationID") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="ID workorder" SortExpression="WORKORDERID">
                            <ItemTemplate>
                                <%# Eval("WORKORDERID")%>
                            </ItemTemplate>
                              <ItemStyle Width="10px" />
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox1" runat="server" Text='<%# Bind("WORKORDERID") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Assigned Employee" SortExpression="EMPLOYEENAME">
                            <ItemTemplate>
                                <%# Eval("EMPLOYEENAME")%>
                            </ItemTemplate>
                             <ItemStyle Width="150px" />
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox2" runat="server" Text='<%# Bind("EMPLOYEENAME") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Start Date" SortExpression="STARTDATE">
                                <ItemTemplate>
                                <%# Eval("STARTDATE")%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox3" runat="server" Text='<%# Bind("STARTDATE") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>
                        
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="End Date" SortExpression="ENDDATE">
                          <ItemTemplate>
                                <%# Eval("ENDDATE")%>
                            </ItemTemplate>
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox4" runat="server" Text='<%# Bind("ENDDATE") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>
                      
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Duration" SortExpression="DURATIONINMINUT">
                         <ItemTemplate>
                                <%# Eval("DURATIONINMINUT")%>
                            </ItemTemplate>
                            <ItemStyle Width="15px" HorizontalAlign="Right" />
                          
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox5" runat="server" Text='<%# Bind("DURATIONINMINUT") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>  
                                          
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Status" SortExpression="TASKSTATUS">                              
                         <ItemTemplate>
                                <%# Eval("TASKSTATUS")%>
                            </ItemTemplate>
                         <ItemStyle Width="30px" />
                              
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox6" runat="server" Text='<%# Bind("TASKSTATUS") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>                      
                       
                        </asp:TemplateField>
                        
                         <asp:TemplateField HeaderText="Description" SortExpression="DESCRIPTION">                              
                         <ItemTemplate>
                               <%-- <%# Eval("DESCRIPTION")%>--%>
                              <asp:label runat="server"
                                                      text="Detail"
                                                      tooltip='<%# Eval ( "DESCRIPTION" ) %>' />
                            </ItemTemplate>
                             <ItemStyle Width="15px" HorizontalAlign="Center" />
                            <EditItemTemplate>
                                &nbsp;<asp:TextBox ID="textBox7" runat="server" Text='<%# Bind("DESCRIPTION") %>' 
                                    Width="95%"></asp:TextBox>
                            </EditItemTemplate>                      
                       
                        </asp:TemplateField>
                    </Columns>
                    <PagerStyle HorizontalAlign="Center" VerticalAlign="Middle" />
                    <EditRowStyle BackColor="LightGray" />
                    <RowStyle CssClass="AlternativeRowStyle" />
                    <AlternatingRowStyle BackColor="White" CssClass="AlternativeRowStyle" />
                </asp:GridView>
                <asp:ObjectDataSource ID="dsListActionTaken" runat="server" 
                    SelectMethod="GetActionTakenDiplayed" TypeName="DirectServiceActionTaken" 
                    >
                    <SelectParameters>
                        <asp:ControlParameter ControlID="txtHiddenWhereClause" Name="whereclause" 
                            PropertyName="Text" Type="String" />
                        <asp:Parameter Name="orderclause" Type="String" />
                    </SelectParameters>
                </asp:ObjectDataSource>
 </div>   
        	    </ContentTemplate>
        	    </asp:UpdatePanel>
                   
         </td></tr>
   </table>
   </body>
          
</asp:Content>

